package com.sh.business.domain.bo;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author dongGe_zzz
 * @date 2025-02-13 18:17
 */
@Data
public class AssetConvertBo implements Serializable {

    /**
     * 兑换源类型
     * 2：usdt 3：aleo 20：szpn
     */
    @NotNull(message = "fromAssetType can not be empty")
    private Integer fromAssetType;

    /**
     * 兑换数量
     */
    @NotNull(message = "amount can not be empty")
    @DecimalMin(value = "1", message = "amount must be greater than 1")
    private BigDecimal amount;

    /**
     * 兑换目标类型
     * 10：scr 50：转账szpn
     */
    @NotNull(message = "toAssetType can not be empty")
    private Integer toAssetType;
}
